<script>
import axios from "axios";

export default {
  name: "keyBoard",
  data(){
    return{
      val:"",
    }
  },
  methods:{
    modified(){
      console.log("修饰符");
      console.log(event)
    }
  },
  created() {
    axios.get('https://showme2.myhope365.com/online_course/weChat/applet/course/banner/list?number=5').then(res=>{//promise对象
      console.log(res,'res');
      this.pickList=res.data.data;
    }).catch(err=>{//失败的时候
      console.log(err);
    }).finally(com=>{
      console.log(com);
    });
  }
}
</script>
<template>
<div>
  <div>键盘修饰符</div>
  <input type="text" v-model="val" @keyup="modified">
  <input type="text" @keyup.49="modified">
  <input type="text" @keyup.50="modified">
</div>
</template>

<style scoped lang="less">

</style>